<%@page import="java.util.ArrayList"%>
<%@page import="com.situ.web.entity.Banji"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%-- ${list} --%>
	<table border="1" cellspacing="0" width="400px">
		<tr>
			<td>ID</td>
			<td>名字</td>
		</tr>
		<%
			List<Banji> list = (ArrayList<Banji>)request.getAttribute("list");
			for (Banji banji : list) {
				// 每遍历一个Course就在table中打印一行数据tr
		%>
				<tr>
					<td><%=banji.getId()%></td>
					<td><%=banji.getName()%></td>
				</tr>
		<%
			}
		%>
	</table>
</body>
</html>